
<%@page import="com.su.mw.mscthesis.util.MScThesisUtils"%>
<%@page import="java.util.HashMap"%>
<%@page import="java.util.Map"%>
<%@page import="org.jbpm.api.TaskService"%>
<%@page import="org.jbpm.api.Configuration"%>
<%@page import="org.jbpm.api.ProcessEngine"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<link rel="stylesheet" type="text/css" href="style.css" />
<title>Index page</title>
</head>
<body id="movie">
<div id="banner"><img src="SU-logo.png" height="110px"
	border="10px" />
<h2>Welcome to the FMI thesis system! Use links below to browse
functionality.</h2>
<br />
<br />
</div>
<div id="columns"><jsp:include page="indexLinks.jsp" />
<div id="main">
<%
ProcessEngine engine = MScThesisUtils.PROCESS_ENGINE;

TaskService ts = engine.getTaskService();
String status = request.getParameter("status").toLowerCase();
String taskId = request.getParameter("taskId");
Map<String, Object> variables = new HashMap<String, Object>();
variables.put("status", status + "ed");
ts.setVariables(taskId, variables);
ts.completeTask(taskId);
out.println("Proposal status updated! Use links below to browse functionality.");
out.print("<br/><br/>");
%>
</div>
</div>
</body>